import React from 'react'
import 'assets/styles/reset.css'
import Layout from './pages/home/Layout'
import {  Route ,Switch, Redirect} from 'react-router-dom'
import CityList from './pages/home/index/CityList'
import Search from './pages/home/index/Search'
import Calendar from './pages/home/index/Calendar'

class App extends React.Component {
  render() {
    return (
      <Switch>
        <Route 
          path="/index"
          component={Layout}
        />
        <Route 
          path="/citylist"
          component={CityList}
        />
        <Route
          path="/search"
          component={Search}
        />
        <Route
          path="/calendar"
          component={Calendar}
        />
        <Redirect
          exact
          from="/"
          to="/index"
        />
      </Switch>
        
    )
  }
}

export default App;
